home *** CD-ROM | disk | FTP | other *** search
/ Robotics & Artificial Int…3 (Professional Edition) / Robotics & Artificial Intelligence Tools 2003 (Professional Edition).iso / neural network tool and application / nsinstall.exe / data1.cab / Demos_Files / OnDrawDemoPanel.nsm < prev    next >
Encoding:
Text File  |  2002-03-08  |  7.7 KB  |  203 lines

  1.  
  2. activeBreadboard. setAnimatePoint ( 225 , 5 )
  3. activeBreadboard. stampAndMove ( "TextBoxEngine" , "titleTextBox" )
  4. titleTextBox. setText ( "NeuroSolutions Demos" )
  5. titleTextBox. setColor ( 0 , 0 , 255 )
  6. titleTextBox. setItalic ( TRUE )
  7. titleTextBox. setBold ( TRUE )
  8. titleTextBox. setPadding ( 1 )
  9. titleTextBox. setHeight ( 35 )
  10. titleTextBox. setWidth ( 320 )
  11. titleTextBox. setPosition ( 1 )
  12. titleTextBox. setBorderType ( 0 )
  13. titleTextBox. setTransparent ( TRUE )
  14. titleTextBox. setFontSize ( 36 )
  15. titleTextBox. setMacroAction ( 1 )
  16. titleTextBox. setEditModeEnabled ( FALSE )
  17.  
  18. descriptionPath = macro. pathFromMacro ( "DemoDescriptions.txt" )
  19. activeBreadboard. setAnimatePoint ( 35 , 50 )
  20. activeBreadboard. stampAndMove ( "TextBoxEngine" , "demo1" )
  21. activeBreadboard. select ( "demo1" , FALSE )
  22. demo1. setAutosize ( FALSE )
  23. demo1. setHeight ( 18 )
  24. demo1. setWidth ( 300 )
  25. demo1. setBorderType ( 5 )
  26. demo1. setBackgroundColor ( 192 , 192 , 192 )
  27. demo1. setColor ( 0 , 0 , 255 )
  28. demo1. setFontSize (18 )
  29. demo1. setBold ( TRUE )
  30. demo1. setItalic ( TRUE )
  31. demo1. setMacroAction ( 1 )
  32. demo1. setTextFromFile ( descriptionPath, 0 )
  33. demoMacroPath = macro. pathFromMacro ( "OnDemoButton.nsm" )
  34. demo1. setMacroPath ( demoMacroPath )
  35. demo1. moveBy (-1, 0 )
  36. demo1. setEditModeEnabled ( FALSE )
  37.  
  38. activeBreadboard. select ( "demo1" , FALSE )
  39. activeBreadboard. copySelection (  )
  40. activeBreadboard. select ( "NULL" , FALSE )
  41. activeBreadboard. setAnimatePoint ( 35  , 80 )
  42. activeBreadboard. pasteToSelection (  )
  43. demo2. setTextFromFile ( descriptionPath, 0 )
  44. activeBreadboard. setAnimatePoint ( 35  , 110 )
  45. activeBreadboard. pasteToSelection (  )
  46. demo3. setTextFromFile ( descriptionPath, 0 )
  47. activeBreadboard. setAnimatePoint ( 35  , 140 )
  48. activeBreadboard. pasteToSelection (  )
  49. demo4. setTextFromFile ( descriptionPath, 0 )
  50. activeBreadboard. setAnimatePoint ( 35  , 170 )
  51. activeBreadboard. pasteToSelection (  )
  52. demo5. setTextFromFile ( descriptionPath, 0 )
  53. activeBreadboard. setAnimatePoint ( 35  , 200 )
  54. activeBreadboard. pasteToSelection (  )
  55. demo6. setTextFromFile ( descriptionPath, 0 )
  56.  
  57. activeBreadboard. setAnimatePoint ( 35  , 230 )
  58. activeBreadboard. pasteToSelection (  )
  59. demo7. setTextFromFile ( descriptionPath, 0 )
  60. activeBreadboard. setAnimatePoint ( 35  , 260 )
  61. activeBreadboard. pasteToSelection (  )
  62. demo8. setTextFromFile ( descriptionPath, 0 )
  63. activeBreadboard. setAnimatePoint ( 35 , 290 )
  64. activeBreadboard. pasteToSelection (  )
  65. demo9. setTextFromFile ( descriptionPath, 0 )
  66. activeBreadboard. setAnimatePoint ( 35 , 320 )
  67. activeBreadboard. pasteToSelection (  )
  68. demo10. setTextFromFile ( descriptionPath, 0 )
  69. activeBreadboard. setAnimatePoint ( 430 , 50 )
  70. activeBreadboard. pasteToSelection (  )
  71. demo11. setTextFromFile ( descriptionPath, 0 )
  72. activeBreadboard. setAnimatePoint ( 430 , 80 )
  73. activeBreadboard. pasteToSelection (  )
  74. demo12. setTextFromFile ( descriptionPath, 0 )
  75.  
  76. activeBreadboard. setAnimatePoint ( 430 , 110 )
  77. activeBreadboard. pasteToSelection (  )
  78. demo13. setTextFromFile ( descriptionPath, 0 )
  79. activeBreadboard. setAnimatePoint ( 430 , 140 )
  80. activeBreadboard. pasteToSelection (  )
  81. demo14. setTextFromFile ( descriptionPath, 0 )
  82. activeBreadboard. setAnimatePoint ( 430 , 170 )
  83. activeBreadboard. pasteToSelection (  )
  84. demo15. setTextFromFile ( descriptionPath, 0 )
  85. activeBreadboard. setAnimatePoint ( 430 , 200 )
  86. activeBreadboard. pasteToSelection (  )
  87. demo16. setTextFromFile ( descriptionPath, 0 )
  88. activeBreadboard. setAnimatePoint ( 430 , 230 )
  89. activeBreadboard. pasteToSelection (  )
  90. demo17. setTextFromFile ( descriptionPath, 0 )
  91. activeBreadboard.setAnimatePoint ( 430,  260 )
  92. activeBreadboard. pasteToSelection (  )
  93. demo18.setTextFromFile ( descriptionPath, 0 )
  94. activeBreadboard.setAnimatePoint ( 430, 290 )
  95. activeBreadboard. pasteToSelection (  )
  96. demo19.setTextFromFile ( descriptionPath, 0 )
  97.  
  98. runButton. moveTo ( 369 , 105 )
  99. runButton. setAutosize ( FALSE )
  100. runButton. setText ( "R U N" )
  101. runButton. setFontSize ( 36 )
  102. runButton. setPadding ( 5 )
  103. runButton. setHeight ( 110 )
  104. runButton. setWidth ( 27 )
  105. runButton. setColor ( 255 , 0 , 0 )
  106. runButton. setBold ( TRUE )
  107. runButton. setItalic ( FALSE )
  108. runPath = macro. pathFromMacro ( "OnIntroduction.nsm" )
  109. runButton. setMacroPath ( runPath )
  110.  
  111. activeBreadboard. setAnimatePoint ( 35 , 350 )
  112. activeBreadboard. stampAndMove ( "TextBoxEngine" , "descriptionTitleTextBox" )
  113. descriptionTitleTextBox. setAutosize ( TRUE )
  114. descriptionTitleTextBox. setItalic ( TRUE )
  115. descriptionTitleTextBox. setBold ( TRUE )
  116. descriptionTitleTextBox. setFontSize ( 18 )
  117. descriptionTitleTextBox. setBorderType ( 0 )
  118. descriptionTitleTextBox. setTransparent ( TRUE )
  119. descriptionTitleTextBox. setMacroAction ( 1 )
  120. descriptionTitleTextBox. setText ( "Description" )
  121. descriptionTitleTextBox. setEditModeEnabled ( FALSE )
  122.  
  123. activeBreadboard. setAnimatePoint ( 35 , 370 )
  124. activeBreadboard. stampAndMove ( "TextBoxEngine" , "descriptionTextBox" )
  125. descriptionTextBox. setHeight ( 75 )
  126. descriptionTextBox. setWidth ( 700 )
  127. descriptionTextBox. setFontSize ( 18 )
  128. descriptionTextBox. setMacroAction ( 1 )
  129. descriptionTextBox. setBorderType ( 0 )
  130. descriptionTextBox. setTransparent ( True )
  131. descriptionTextBox. setEditModeEnabled ( FALSE )
  132.  
  133. activeBreadboard. setAnimatePoint ( 711 , 13  )
  134. activeBreadboard. stampAndMove ( "ButtonEngine" , "helpButton" )
  135. helpButton. setFontSize ( 24 )
  136. helpButton. setPosition ( 1 )
  137. helpButton. setPadding ( 1 )
  138. helpButton. setColor ( 255 , 0 , 0 )
  139. helpButton.setBold ( TRUE )
  140. helpButton. setText ( "?" )
  141. helpPath =  macro. pathFromMacro ( "OnHelp.nsm" )
  142. helpButton. setMacroPath ( helpPath )
  143. helpButton. setEditModeEnabled ( FALSE )
  144.  
  145. activeBreadboard. setAnimatePoint ( 75 , 450  )
  146. activeBreadboard. stampAndMove ( "ButtonEngine" , "excelButton" )
  147. excelButton. setAutosize ( FALSE )
  148. excelButton. setPosition ( 1 )
  149. excelButton. setFontSize ( 18 )
  150. excelButton. setPadding ( 5 )
  151. excelButton. setBold ( TRUE )
  152. excelButton. setItalic ( TRUE )
  153. excelButton. setColor ( 255 , 0 , 0 )
  154. excelButton. setText ( "NeuroSolutions For Excel Demos..." )
  155. excelButton. setHeight ( 40 )
  156. excelButton. setWidth ( 180 )
  157. excelPath = macro. pathFromMacro ( "OnExcel.nsm" )
  158. excelButton. setMacroPath ( excelPath )
  159. excelButton. setEditModeEnabled ( FALSE )
  160.  
  161. activeBreadboard. setAnimatePoint ( 295 , 450  )
  162. activeBreadboard. stampAndMove ( "ButtonEngine" , "cswButton" )
  163. cswButton. setAutosize ( FALSE )
  164. cswButton. setPosition ( 1 )
  165. cswButton. setFontSize ( 18 )
  166. cswButton. setPadding ( 5 )
  167. cswButton. setBold ( TRUE )
  168. cswButton. setItalic ( TRUE )
  169. cswButton. setColor ( 255 , 0 , 0 )
  170. cswButton. setText ( "Custom Solution Wizard Demo..." )
  171. cswButton. setHeight ( 40 )
  172. cswButton. setWidth ( 180 )
  173. cswPath = macro. pathFromMacro ( "OnCSW.nsm" )
  174. cswButton. setMacroPath ( cswPath )
  175. cswButton. setEditModeEnabled ( FALSE )
  176.  
  177. activeBreadboard. setAnimatePoint ( 515 , 450  )
  178. activeBreadboard. stampAndMove ( "ButtonEngine" , "moreButton" )
  179. moreButton. setAutosize ( FALSE )
  180. moreButton. setPosition ( 1 )
  181. moreButton. setFontSize ( 18 )
  182. moreButton. setPadding ( 5 )
  183. moreButton. setBold ( TRUE )
  184. moreButton. setItalic ( TRUE )
  185. moreButton. setColor ( 255 , 0 , 0 )
  186. moreButton. setText ( "What to do after running the demos..." )
  187. moreButton. setHeight ( 40 )
  188. moreButton. setWidth ( 180 )
  189. morePath = macro. pathFromMacro ( "OnMore.nsm" )
  190. moreButton. setMacroPath ( morePath )
  191. moreButton. setEditModeEnabled ( FALSE )
  192.  
  193. CurrentDemo. setName ( "activeDemo" )
  194. descriptionTextBox. setName ( CurrentDemo )
  195. CurrentDemo. setTextFromFile( descriptionPath , 1 )
  196. CurrentDemo. setName ( "descriptionTextBox" )
  197. activeDemo. setName ( CurrentDemo )
  198. CurrentDemo. setBorderType ( 10 )
  199. CurrentDemo. setColor ( 255 , 0 , 0 )
  200.  
  201. activeBreadboard. unlockWindowUpdate()
  202.  
  203.